<template>
  <div id="commodity">
    <div class="main" @click="tabClick">
      <div class="left">
        <img :src="list.pic" alt="" />
      </div>
      <div class="right">
        <p style="margin-top:10px;">{{ list.name }}</p>
        <p style="color:#ccc;font-size:15px;margin-top:6px">{{list.characteristic}}</p>
        <ol>
            <li>
                <p style="color:red;font-weight:600;">￥{{list.minPrice}}</p>
                <p style="color:#333;font-weight:600;">低价</p>
            </li>
            <li>
                <p>￥{{list.originalPrice}}</p>
                <p>原价</p>
            </li>
            <li>
                <p>￥{{list.stores}}</p>
                <p>限量</p>
            </li>
        </ol>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  props:["list"],
  data() {
    return {

    };
  },
  created() {

},
  methods: {
tabClick(){
  this.$router.push({
    name:'list'
  })
}
  },
};
</script>

<style lang="scss" scoped>
* {
  font-size: 0.3rem;
}
.main {
  width: 100%;
  height: 150px;
  display: flex;
  border-bottom: 0.2rem solid #F5F5F5;
  .left {
    width: 40%;
    margin: 3px;

    img {
      width: 100%;
      height: 100%;
      border-radius: 6px;
    }
  }
  .right{
      width: 100%;
      margin-left: 10px;
      ol{
          width: 70%;
          height: 100px;
          display: flex;
          justify-content: space-between;
          li{
              width: 25%;
              margin-top: 20%;
              margin-left: 5%;
              p{
                  margin-top: 5px;
                  color: #ccc;
              }
          }
      }
  }
}
</style>
